import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export const constantRoutes = [
    {
        path: '/',
        component: () => import('./views/ndx'),
       // component: () => import('./views/index.vue'),
    },
    // {
    //     path: '/ndx',
    //     component: () => import('./views/ndx'),
    // },
    // {
    //     path: '/start',
    //     component: () => import('./views/start.vue'),
    // },
    // {
    //     path: '/start_change',
    //     component: () => import('./views/start_change.vue'),
    // },
    // {
    //     path: '/old',
    //     component: () => import('./views/old.vue'),
    // },
    // {
    //     path: '/map',
    //     component: () => import('./views/map.vue'),
    // },
    // {
    //     path: '/text',
    //     component: () => import('./views/text.vue'),
    // },
    // {
    //     path: '/chartSyncZoom',
    //     component: () => import('./views/chartSyncZoom.vue'),
    // },
    // {
    //     path: '/aa',
    //     component: () => import('./views/DefectTrend.vue'),
    // },
    // {
    //     path: '/coor',
    //     component: () => import('./views/contour/coor.vue'),
    // },
    // {
    //     path: '/range',
    //     component: () => import('./views/contour/range.vue'),
    // },
    // {
    //     path: '/trend',
    //     component: () => import('./views/contour/trend.vue'),
    // },
    // {
    //     path: '/win',
    //     component: () => import('./views/win.vue'),
    // },

]
const createRouter = () =>
    new Router({
        scrollBehavior: () => ({ y: 0 }),
        routes: constantRoutes,
    })

const router = createRouter()

export default router